define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Init = ALL.Init;

    var _vm = Init.initVue({
        data : {
            id : null,
            list : [],
            cur : 1,
            all : 0,
            total : 0,
            schFlag : false,
            search : {
                auth : 0,
                bind : 0,
                no : '',
            }
        },
        methods: {
            reSearch : function() {
                this.schFlag = true;
                this.getData(1);
            },
            reset : function() {
                this.schFlag = false;
                this.search.no = '';
                this.search.auth = 0;
                this.search.bind = 0;
            },
            getData : function(n) {
                _vm.search.page = n;
                _vm.search.num = 10;
                METHOD.loading.show();
                METHOD.ajax("team/member/list",_vm.search).done(function(json){
                    METHOD.loading.hide();
                    _vm.list = json.data;
                    _vm.all = json.page.pages;
                    _vm.total = json.page.total;
                }).fail(function(){
                    METHOD.loading.hide();
                });
            }
        }
    });

    _vm.getData(1);


});

